Revise ishdr test for garmin to pick up > 1 track _and_ not insert bogus
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 22 Apr 2006 23:36:56 +0000 (23:36 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 22 Apr 2006 23:36:56 +0000 (23:36 +0000)
breaks on header edges.   With this grep '<trk'  | wc -l between Mapsource
and us returns the same number of lines.  (We do differ in the precision
displayed, but that's noise...)

gpsbabel/garmin.c

index 25550698845098838f3d697abab662fe6a6f7802..aaaec83a39db8ebb688af55e7a86c670849a8070 100644 (file)
@@ -303,7 +303,6 @@ track_read(void)
                        if (!trk_name)
                                trk_name = "";
                        trk_seg_num = 1;
-                       continue;
                }
 
 
@@ -323,7 +322,7 @@ track_read(void)
                        track_add_head(trk_head);
                }
 
-               if (array[i]->no_latlon) {
+               if (array[i]->no_latlon || array[i]->ishdr) {
                        continue;
                }
                wpt = waypt_new();